<h2 class="title title-bg">
	<%= image_tag "downloads-title.jpg" %>
</h2>
<div class="article-list">
	<% @downloads.each do |download| %>
		<dt>
			<%= link_to download.title, download_path(download), :title => download.title %>
			<em><%= download.created_at.strftime("%Y-%m-%d %H:%M") %></em>
		</dt>
		<dd>
			<p>
				<%= download.content.bbcode_to_html.gsub(%r{</?[^>]+?>}, '').scan(/./)[0, 180].join('') if download.content %>
				&nbsp;&nbsp;
				<%= link_to "资源列表>>", download_path(download), :title => "#{download.title} 资源列表" %>
			</p>
			<p>
				资源数量：<%= download.downfiles.count %>
			</p>
		</dd>
	<% end %>
</div>
